package gameLevel.classicLevel;

import object.Grass;
import object.Iron;
import object.Wall;
import tank.Dir;
import tank.EnemyTank;
import tank.TankType;

public class ClassicLevel_3 extends ClassicLevel{

    @Override
    protected void initEnemyTanks() {
        enemyTanks.add(new EnemyTank(TankType.ENEMY3, 11, 50, Dir.DOWN));
        enemyTanks.add(new EnemyTank(TankType.ENEMY3, 11, 300,Dir.RIGHT));
        enemyTanks.add(new EnemyTank(TankType.ENEMY3, 385, 50,Dir.DOWN));
        enemyTanks.add(new EnemyTank(TankType.ENEMY3, 741, 300,Dir.LEFT));
        enemyTanks.add(new EnemyTank(TankType.ENEMY3, 741, 50,Dir.DOWN));

        enemyTankMove();
    }

    @Override
    protected void initTerrainLayout() {
        for(int i = 0; i < 6; i++){
            if(i >= 2){
                new Wall(70, 560 - (i - 2) * 30);
                new Iron(120, 10 + (i - 2) * 30);
                new Iron(640, 10 + (i - 2 ) * 30);
                new Wall(690, 560 - (i - 2) * 30);
            }

            if(i >= 3){
                new Wall(160 + (i - 3) * 30, 360);
                new Wall(355 + (i - 3) * 30, 210);
                new Wall(355 + (i - 3) * 30, 240);
                new Wall(355 + (i - 3) * 30, 270);
                new Wall(600 - (i - 3) * 30, 360);
            }

            if(i >= 4){
                new Iron(10 + (i - 4) * 30, 220);
                new Wall(100, 560 - (i - 4) * 30);
                new Wall(130, 330 - (i - 4) * 30);
                new Iron(220 + (i - 4) * 30, 180);
                new Iron(220 + (i - 4) * 30, 440);
                new Grass(355, 120 - (i - 4) * 30);
                new Grass(385, 440 - (i - 4) * 30);
                new Grass(415, 120 - (i - 4) * 30);
                new Iron(540 - (i - 4) * 30, 180);
                new Iron(540 - (i - 4) * 30, 440);
                new Wall(630, 330 - (i - 4) * 30);
                new Wall(660, 560 - (i - 4) * 30);
                new Iron(760 - (i - 4) * 30, 220);
            }

            if(i == 5){
                new Iron(130, 360);
                new Iron(385, 120);
                new Iron(630, 360);
            }
        }
    }

}
